<%--
  Created by IntelliJ IDEA.
  User: PC
  Date: 2024/5/22
  Time: 下午1:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<script src="js/jquery-3.3.1.js"></script>
<script>
    const userList = new Array();
    userList.push({name:"阿宝",age:"20"});
    userList.push({name:"乌龟",age:"999"});

    $.ajax({

        type:"POST",
        url:"/mv13",<%--找不到路径可以加${pageContext.request.contextPath}路径--%>
        data:JSON.stringify(userList),
        contentType:"application/json;charset=utf-8"
    });
</script>
pageContext.request.contextPath路径
<img src="img/emo.jpg">
1111111222233344445555
</body>
</html>
